import { ElMessageBox } from "element-plus";
const Confirm = (message, confirmFunction, cancleFunction) => {
  ElMessageBox.confirm(message, "提示", {
    closeOnClickModal: false,
    confirmButtonText: "确定",
    cancelButtonText: "取消",
    type: "warning",
    appendToBody: true,
  })
    .then(confirmFunction)
    .catch(cancleFunction);
};
export default Confirm;
